package com.ruoyi.base.mapper;

import com.ruoyi.base.domain.MaterialsSuppliers;

/**
 * @Author: YwaiX
 * @Version: 1.0
 * @Date: Created in 2024-10-28 10:25:20
 * @Description:
 */
public interface MaterialsSuppliersMapper {
    /**
     * 添加物料和供应商关联
     * @param materialsSuppliers
     * @return
     */
    int insert(MaterialsSuppliers materialsSuppliers);

    /**
     * 删除物料和供应商关联
     * @param materialsSuppliers
     */
    void deleteByMaterialIdAndSupplierId(MaterialsSuppliers materialsSuppliers);

    /**
     * 批量删除物料和供应商关联
     * @param ids
     */
    void deleteByMaterialIdAndSupplierIds(Long[] ids);
}
